<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2023/4/26
 * Time: 9:41
 */

namespace app\index\validate;


use think\Validate;

class OrderUpdate extends Validate
{
    protected $rule = [
        'orderid'=>'require',
        'province'=>'require',
        'city'=>'require',
        'area'=>'require',
        'address'=>'require',
        'total'=>'require',
        'ding_price'=>'require',
        'manage_username'=>'require',
        'content'=>'require'
    ];

    protected $message = [
        'orderid'=>'orderid缺失',
        'province'=>'请选择省',
        'city'=>'请选择市',
        'area'=>'请选择区',
        'address'=>'请出入地址详情',
        'total'=>'请输入订单金额',
        'ding_price'=>'请输入已收定金',
        'manage_username'=>'缺少工号manage_username',
        'content'=>'请输入备注内容'
    ];

    protected $scene = [
        'order_up'  =>  ['orderid','province','city','area','address','total','ding_price'],
        'order_record'  =>  ['orderid','manage_username','content'],
    ];


}